//
// Created by Administrator on 2021/10/30.
//

#include "iostream"
#include "dArray.h"
using namespace std;

int main()
{
    DArray array(200);
    for (int i = 0; i < 173; ++i) {
        array.addElement(i);
    }

    int times = 0;
//    cout << array.search(0, 5) << endl;
    cout << array.search(54, times)  << endl;
    cout << times << endl;
//    cout << array.search(2, 2) << endl;
//    cout << array.search(3, 2) << endl;
//    cout << array.search(4, 2) << endl;
//    cout << array.search(5, 2) << endl;
//    cout << array.search(6, 2) << endl;
//    cout << array.search(7, 2) << endl;
//    cout << array.search(8, 2) << endl;
//    cout << array.search(9, 2) << endl;
//    cout << array.search(10, 2) << endl;
//    cout << array.search(11, 5) << endl;

}

